<template lang="html">
  <div class="menulist-box">
    <div class="menulist-wrap">
      <div class="menulist">
        <div class="item-list-box" v-for="(item,index) in menulist" >
          <div class="item-list" :class="item.bgcolor">
            <i class=" iconfont" :class="item.id"></i>
          </div>
            <p>{{item.name}}</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name:"MeNu",
  data(){
    return{
      menulist:[
        {
          name: "美容养颜",
          id:  'icon-meirongyangyan',
          bgcolor: 'firstbg',
          value: 0,
        },
        {
          name: "保健调养",
          id:  'icon-baojiantiaoyang',
          bgcolor: 'twobg',
          value: 1,
        },
        {
          name: "补养",
          id:  'icon-buyang',
          bgcolor: 'threebg',
          value: 2,
        },
        {
          name: "减肥",
          id:  'icon-jianfei',
          bgcolor: 'fourbg',
          value: 3,
        },
        {
          name: "母婴",
          id:  'icon-muying',
          bgcolor: 'fivebg',
          value: 4,
        },
        {
          name: "气节",
          id:  'icon-meirongyangyan',
          bgcolor: 'sixbg',
          value: 5,
        },
        {
          name: "常见食疗",
          id:  'icon-chengjianshiliao',
          bgcolor: 'sevenbg',
          value: 6,
        },
        {
          name: "人群功效",
          id:  'icon-renqungongxiao',
          bgcolor: 'eightbg',
          value: 7,
        },
        {
          name: "维生素",
          id:  'icon-weishengsu',
          bgcolor: 'ninebg',
          value: 8,
        },
        {
          name: "其他",
          id:  'icon-qitakongxin',
          bgcolor: 'tentbg',
          value: 9,
        }
      ]
    }
  }
}
</script>

<style lang="less" scoped>
.menulist-box{
  width: 100%;
  height: 2.5rem;
  margin-top: 0.3rem;
  .menulist-wrap{
    width: 100%;
    height: 100%;
    text-align: center;
    .menulist{
      width: 100%;
      height: 100%;
      margin-top: 0.3rem;
      .item-list-box{
        width: 20%;
        height: 50%;
        float: left;
        margin-top: 0.1rem;
        .item-list{
          width: 0.8rem;
          height:0.8rem;
          border-radius: 0.5rem;
          line-height: 0.8rem;
          text-align: center;
          display: inline-block;
          i{
            font-size: 0.6rem;
            color:#fff;
          }
        }
        .firstbg{
          background-color: #FFAF96;
        }
        .twobg{
          background-color: #43EBB7;
        }
        .threebg{
          background-color: #61E67D;
        }
        .fourbg{
          background-color: #EF5F5F;
        }
        .fivebg{
          background-color: #FF7D95;
        }
        .sixbg{
          background-color: #00CDCC;
        }
        .sevenbg{
          background-color: #FFBE40;
        }
        .eightbg{
          background-color: #3EA0E1;
        }
        .ninebg{
          background-color: #FFAF1C;
        }
        .tentbg{
          background-color: #CAD9D6;
        }
        p{
          margin-top: 0.1rem;
        }
      }
    }
  }
}

</style>
